package com.example.xksys.controller;

import com.example.xksys.service.ScService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/sc")
public class ScController {
    @Resource
    private ScService scService;
    @RequestMapping("/add")
    public int add(@RequestParam Map<String,String> param){
      return   scService.doadd(param);
    }

    @RequestMapping("/check")
    public List<Map<String, Object>> check(@RequestParam Map<String,String>param){
        return scService.docheck(param);
    }

    @RequestMapping("/delete")
    public int delete(@RequestParam Map<String,String> param){
        return scService.dodelete(param);
    }

}
